.card-demo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: white;
}

.card-demo h1 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.demo-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.demo-section {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-section h2 {
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 215, 0, 0.3);
  padding-bottom: 0.5rem;
}

/* 卡片示例布局 */
.card-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* 布局示例 */
.layout-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.layout-section h3 {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* 使用示例样式 */
.usage-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

/* 产品卡片样式 */
.product-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.product-image {
  flex-shrink: 0;
}

.image-placeholder {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  color: #ffd700;
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
}

.price {
  font-size: 1.5rem;
  font-weight: 600;
  color: #4caf50;
  margin: 0.5rem 0;
}

.description {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.5;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* 用户卡片样式 */
.user-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.user-avatar {
  flex-shrink: 0;
}

.avatar-placeholder {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.user-info {
  flex: 1;
}

.user-info h3 {
  color: #ffd700;
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.user-role {
  color: #667eea;
  font-weight: 500;
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.user-bio {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0 1rem 0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.user-stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffd700;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .card-demo {
    padding: 1rem;
  }
  
  .card-demo h1 {
    font-size: 2rem;
  }
  
  .demo-section {
    padding: 1.5rem;
  }
  
  .card-examples {
    grid-template-columns: 1fr;
  }
  
  .layout-examples {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .usage-examples {
    grid-template-columns: 1fr;
  }
  
  .product-card,
  .user-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .user-stats {
    justify-content: center;
  }
} 